package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    //查询所有分类
    List<Category> findAll();

    //添加菜系和套餐
    void addStyleOfCooking(Category category);

    void updateStyleOfCooking(Category category);

    Integer countDishCategoryId(Long id);

    Integer countSetmealCategoryId(Long id);

    void deleteStyleOfCooking(Long id);
}
